<script setup lang="ts">
import { onMounted } from 'vue'
import { RouterView } from 'vue-router'

// On component mount, set the class for the <html> element to 'dark' to enable the dark theme.
onMounted(() => {
  document.documentElement.className = 'dark'
})
</script>

<template>
  <el-container class="main-container">
    <el-header class="main-header">
      MCP 管理平台
    </el-header>
    <el-main>
      <RouterView />
    </el-main>
  </el-container>
</template>

<style scoped>
.main-container {
  height: 100vh;
  background-color: #0D1117; /* Main background color from design */
}

.main-header {
  display: flex;
  align-items: center;
  background-color: rgba(22, 27, 34, 0.7); /* Frosted glass color */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #30363d;
  color: #E6EDF3;
  font-size: 20px;
  font-weight: 600;
}

.el-main {
  padding: 2rem;
}
</style>
